package com.mew.slots.core.game.mnyys.message;

import com.mew.slots.core.common.messge.response.SlotsPlayResponseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: TODO
 * @Author King.Song
 * @Date 2020/11/10 0010
 **/
@Data
@ToString(callSuper = true)
@NoArgsConstructor
public class MnyysPlayResponseMessage extends SlotsPlayResponseMessage {
    public int bonus;//是否出转盘
    public int progressBar;//进度条
    public List<Integer> goldenFrees=new ArrayList<>();//黄金免费图标

    @Override
    public void write(ByteBuf b) {
        super.write(b);
        writeInt(b,bonus);
        writeInt(b,progressBar);
        writeInt(b,goldenFrees.size());
        for(int gf:goldenFrees){
            writeInt(b,gf);
        }
    }

    @Override
    public SlotsPlayResponseMessage read(ByteBuf byteBuf) {
        return null;
    }


}
